/**
 * @author 冯进茹
 * @time 2022-12-02 14:13
 * @description 定义具体路由
 */
import Login from '../views/login/index.vue'
import Home from '../views/home/index.vue'
import Check from '../views/check/index.vue'
import Record from '../views/record/index.vue'
import Liucheng  from '../views/liucheng/index.vue'
import Approval from '../views/approval/index.vue'
import Forget from '../views/login/forget.vue'
import Identity from '../views/login/identity.vue'
import SetPassword from '../views/login/setPassword.vue'
import Complete from '../views/login/complete.vue'
import Mine from '../views/mine/index.vue'
import Apply from '../views/system/leaveApply.vue'
import userAdd from '../views/system/userAdd.vue'
import Message from '../views/message/index.vue'
import Echarts from '../views/liucheng/echarts.vue'
/**
 * @author 冯进茹
 * @time 2022-12-04 13:13
 * @description 给对应路由添加tabbar所需要的meta元素（icon等）
 */
export default [{
        path: '/',
        redirect: '/login'

    },
    {
        path: '/login',
        component: Login,
        meta: {
            nologin: true
        }
    },
    {
        path: '/home',
        component: Home,
        meta:{
            title:'首页',
            inTabbar:true,
            icon: 'wap-home-o',
        }
    },

    {
        path:'/liucheng',
        component:Liucheng,
        meta:{
            inTabbar:true,
            title:'流程',
            icon: "cluster-o",
        }
    },
    {
        path:'/echarts',
        component:Echarts,
        meta:{
            inTabbar:true,
            title:'数据',
            icon: "envelop-o",
        }
    },
    {
        path:'/mine',
        meta:{
            inTabbar:true,
            title:'我的',
            icon: "contact",
        },
        component:Mine
    },
    {
        path:'/check',
        component:Check
    },
    {
        path:'/record',
        component:Record
    },
    {
        path:'/apply',
        component:Apply
    },
    {
        path:'/userAdd',
        component:userAdd
    },
    
    {
        path:'/forget',
        component:Forget
    },
    {
        path:'/identity',
        component:Identity
    },
    {
        path:'/setPassword',
        component:SetPassword
    },
    {
        path:'/complete',
        component:Complete
    },
    {
        path:'/echarts',
        component:Echarts
    },
    {
        path:'/approval',
        component:Approval,
        meta:{
            title:'考勤审核'
        }
    }
]